package com.bff.slimserver.musicjukebox.ui.components;

import javax.swing.JLabel;
import java.awt.Color;

/**
 *
 */

public class SongLabel extends JLabel implements Cloneable {
  private boolean m_bUseAlternatingColors = true;
  public SongLabel() {
    super();
    this.setForeground(Color.black);
  }

// accept a string for the label text
  public SongLabel(String lblText) {
    super();
    this.setText(lblText);
    this.setForeground(Color.black);
  }

  public void setUseAlternatingColors(boolean uac) {
    m_bUseAlternatingColors = uac;
  }

  public boolean isUsingAlternatingColors() {
    return m_bUseAlternatingColors;
  }

  public SongLabel getCopy() {
    return ((SongLabel)this.clone());
  }

  public Object clone()  {
    try {
      return super.clone();
    }
    catch (CloneNotSupportedException ex) {
      return null;
    }
  }
}
